package com.ihrm.system;

import com.ihrm.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;

/**
 * Hello world!
 *
 */
@SpringBootApplication
// 配置 jpa 注解包扫描路径
@EntityScan(value = "com.ihrm.domain.system")    // spring data jpa 包扫描
public class SystemApplicationApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(SystemApplicationApp.class, args);
    }


    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }



}
